package com.bdth.service;

import com.bdth.mapper.BaseMapper;

import java.util.List;
import java.util.Map;

public interface IBaseService<T> {

	public void add(T t) throws Exception;

	public void update(T t) throws Exception;

	public void updateBySelective(T t);

	public void delete(Object... ids) throws Exception;

	public void deleteFake(T t) throws Exception;

	public T queryById(Object id) throws Exception;

	public int queryByMapCount(Map map) throws Exception;

	public List<T> queryByMapList(Map map) throws Exception;
}
